Variable offset amplifier circuit

ABSTRACT

First and second differential transistor pairs, where each is intentionally unbalanced, are provided. Each pair has first and second output nodes. The first output node of the first pair is coupled to the second output node of the second pair. The second output node of the first pair is coupled to the first output node of the second pair. First and second variable current generators are coupled to control respective tail currents of the first and second differential pairs. Applications of the amplifier circuit include sense amplifiers and comparators.

BACKGROUND

The invention is in general related to amplifier circuits and in particular to those having variable offset capability.

Amplifier circuits are used to amplify an input electrical signal to provide current and/or voltage gains or reductions. They may be used to amplify a single ended or a differential signal. In addition, when used in conjunction with an output regenerative latch stage, they can provide a digital output signal (having one of two stable states) that is an indication of a comparison between two single ended input signals or a determination of the magnitude of a differential signal. A basic component of many amplifier circuits is the differential transistor pair used as the input stage of the amplifier.

Most practical implementations of amplifier circuits suffer from manufacturing process-induced variations in the structure of the circuit elements, which cause an offset in the amplifier's operation. This offset may be explained by, for instance, considering an amplifier that is designed to amplify a differential input signal. In the ideal case, the output of the amplifier would be zero volts if the input differential signal was zero volts. However, in practice, a zero voltage differential input signal often yields a small but nevertheless non-negligible output offset voltage.

Output offset may be corrected using a wide range of techniques known as offset cancellation techniques. In one such technique, the value of the input differential signal that actually yields a zero output voltage is measured and stored, and then is subsequently subtracted from each new input signal to thus cancel the offset of the amplifier.

To help reduce the inherent offset of the amplifier, the input differential transistor pair that receives the input signal is constructed using transistor matching techniques such that the pair is said to be balanced. The transistors of a balanced differential pair are typically replicates of each other in terms of size and as such are designed to mimic each other's electrical characteristics. This also allows the amplifier to respond in the same manner to variations in the input signal that have opposite polarity but the same magnitude.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” embodiment in this disclosure are not necessarily to the same embodiment, and they mean at least one.

FIG. 1 shows a circuit schematic of an embodiment of a variable offset amplifier circuit.

FIG. 2 depicts a circuit schematic of another embodiment of the variable offset amplifier circuit.

FIG. 3 illustrates a circuit schematic of an embodiment of a digitally controllable current source.

FIG. 4 shows a circuit schematic of a digitally controllable current source cell.

FIG. 5 depicts a circuit schematic of an embodiment of the variable offset amplifier that also includes an embodiment of a common mode feedback circuit.

FIG. 6 illustrates a circuit schematic of an embodiment of a digitally controllable variable offset comparator circuit.

FIG. 6B shows a flow diagram of an embodiment of an offset trimming procedure.

FIG. 7 a flow diagram of an embodiment of a process for designing the variable offset amplifier circuit.

DETAILED DESCRIPTION

A variable offset amplifier circuit is described. According to an embodiment, first and second differential transistor pairs are provided that are intentionally unbalanced. Each pair has first and second output nodes that are “inter-coupled”, i.e. the first output node of the first pair is coupled to the second output node of the second pair, and the second output node of the first pair is coupled to the first output node of the second pair. Variable current generators are coupled to control the respective tail currents of the differential pairs. Such an amplifier circuit allows a variable non-zero offset to be introduced, by varying the respective tail currents of the differential pairs. This variable offset capability also allows the inherent offset of the amplifier to be cancelled so that zero offset is achieved. In addition, the non-zero offset may be beneficial in certain applications such as adders; rather than requiring a separate adder circuit, the amplifier can be used to inherently add a value to an input signal by setting a non-zero offset to include the value to be added. The amplifier circuit also permits the polarity of the offset to be changed as a function of changing tail current. This means that there may be a positive or a negative offset that is permissible about a center or nominal offset value. Yet another advantage of the amplifier circuit is that relatively large offset changes may be introduced using relatively small changes in the tail current. This feature helps keep the speed of operation of the amplifier circuit as a whole from varying too much across a wide offset range.

Referring now to FIG. 1, an embodiment of the amplifier circuit is shown as implemented using p-channel metal oxide semiconductor field effect transistors (MOSFETs). This embodiment includes a first differential transistor pair 102, 104, and a second differential transistor pair 106, 108. Each pair is intentionally unbalanced. For instance, in this embodiment, the unbalanced characteristic is obtained by the transistor 102 being larger than the transistor 104 by a factor N>1 in the width of the transistor channel. Also, transistor 108 has a greater channel width than that of transistor 106, by, in this embodiment, the same factor N. To help keep manufacturing costs low, the length of the transistor channels may be the same across all transistors in the amplifier circuit.

The first and second transistor pairs may be referred to as being inter-coupled to each other because output node 120 of the first pair is coupled to output node 124 of the second pair, while output node 104 of the first pair is coupled to output node 126 of the second pair. Output nodes 120 and 126 are respectively coupled to load devices 110 and 112. These load devices may include passive and/or active circuits, depending on the application of the amplifier circuit. The load devices may alternatively represent a separate output amplification state that provides an output signal at further output nodes of that stage.

The respective tail currents of the differential pairs are controlled by variable current generators 114 and 116 as shown. In this embodiment, variable current generators 114 and 116 are variable current sources that also pass the tail currents of the respective differential pairs. Other types of variable current generators to control the tail currents may alternatively be used. See, e.g., the current sinks in FIG. 2 described below.

Continuing to refer to FIG. 1, the amplifier circuit provides output voltages V_(out) ^(b) and V_(out) ^(a) in response to the input voltages V_(in) ^(a), V_(in) ^(b), V_(in) ^(c), and V_(in) ^(d). In an embodiment of the amplifier circuit, a difference output voltage V_(out) ^(b)−V_(in) ^(a) is generated in response to the difference V_(in) ^(a)−V_(in) ^(b) and V_(in) ^(c)−V_(in) ^(d). The gain of the amplifier circuit may be determined by a variety of factors, including the impedance R_(load) of the load devices 110 and 112, and the transconductance g_(m) of each transistor in the first and second differential pairs. The provision of variable non-zero offset by an embodiment of the amplifier circuit in FIG. 1 may be explained using the following example.

Consider the situation where the input voltages are equal, i.e. V_(in) ^(a)=V_(in) ^(b)=V_(in) ^(c)=V_(in) ^(d). Also assume that the tail currents I₁ and I₂ are equal and the load impedances are equal. In such a configuration, the amplifier circuit provides a nominal offset that will appear at the output as V_(out) ^(b)−V_(out) ^(a)=V_(nominal)

={[N/(N+1)]I ₁+[1/(N+1)]I ₂ } R _(load −{[) N/(N+1)]I ₂+[1/(N+1)]I ₁ } R _(load)=0.  (1)

Next, keeping the input voltages the same, if I₁ is increased and I₂ is decreased both by the same amount, namely I₁+ΔI and I₂−ΔI, then V_(out) ^(a) changes to the following:

V _(out) ^(a) ={[N/(N+1)][I ₁+Δ1]+[1/(N+1)] [I ₂ −ΔI]} R _(load) ={I+[(N−1)/(N+1)]ΔI}R _(load)  (2)

Similarly, the new value of V_(out) ^(b) is given by:

V _(out) ^(b) ={[N/(N+1)][I ₂ −ΔI]+[1/(N+1)][I ₁ −ΔI]}R _(load) ={I−[(N−1)/(N+1)]ΔI}R _(load)  (3)  (3)

Finally, the difference output voltage V_(out) ^(b)−V_(out) ^(a) is given by:

V _(out) ^(b) −V _(out) ^(a)=[2(N−1)/(N+1)]ΔI R _(load)  (4)

Thus, increasing I₁ and decreasing I₂ resulted in a decrease in the difference output voltage as given in the expression above. This decrease is the offset forced by the change in the tail currents. Now, if the tail currents are changed in the reverse direction, that is if I₁ is decreased and I₂ is increased by the same amount, then following an analysis similar to that above gives the following expression:

V _(out) ^(b) −V _(out) ^(a)=[2(N−1)/(N+1)]ΔI R_(load)  (5)

which is an offset in the output voltage that is opposite in polarity to that given by equation (4). Thus, this example illustrates how opposite polarity offsets may be obtained in proportion to a differential change in the tail currents.

It should be noted that although in the example above the change in tail current was exactly differential in that one tail current was increased by exactly the same amount as the other tail current was decreased, the amplifier circuit may still be useful if the tail currents are changed in unbalanced ways. Also, unequal load impedances may alternatively be provided to force a nonzero nominal offset.

Continuing to refer to FIG. 1, to improve the common mode rejection of the amplifier circuit, a common mode feedback circuit (CMFB) 130 may be coupled to adjust the variable current generators 114, 116 in response to voltages of the first and second differential pairs. In the embodiment shown, the CMFB 130 detects the voltage at the output of the variable current generators 114 and 116 and in response adjusts the tail currents of the differential pairs by adjusting the variable current generators 114, 116. The CMFB 130 does not add any significant capacitance to the inputs of the differential pairs, making the CMFB 130 compatible with applications that require low input capacitance.

Referring now to FIG. 2, what's shown is a circuit schematic of another embodiment of the variable offset amplifier, this time using n-channel MOSFETs 202, 204 for the first differential pair and n-channel MOSFETs 206, 208 for the second differential pair. The variable current generators in this embodiment are current sinks 214 and 216 which control the tail currents of the differential amplifiers, respectively. The output nodes 220 and 224 are coupled to a load 210 which in turn is coupled to a power supply node, whereas output nodes 222 and 226 are coupled to a load 212 which is also coupled to the power supply node. Thus, in contrast to the embodiment of FIG. 1, the amplifier circuit in FIG. 2 has its load devices 210, 212 referenced to a power supply node rather than to a power return (e.g. ground) node. Despite this difference, the same ability to adjust the offset is present and the example used to explain the operation of the embodiment of FIG. 1 also applies albeit with a slight difference in nomenclature to the n-channel embodiment in FIG. 2. In addition, a CFMB 230 may also be provided for the n-channel embodiment in FIG. 2, to further improve the common mode rejection of this amplifier circuit.

Referring now to FIG. 3, this figure depicts a circuit schematic of an embodiment of a digitally controllable current source that can be used in place of the variable current generator 114 or 116 of FIG. 1. This current source has a number of digitally variable current cells 302 ⁻ 1, 302 ⁻ 2 . . . 302 ⁻M that are coupled in parallel to provide their individual currents which are summed to yield I_(out). This output current I_(out) may be the tail current of a differential transistor pair. Each individual cell current may be adjusted by varying a bias level in each cell in response to an input signal. The individual cell current may be turned on or off in response to a signal at a control input CTL as shown. This control signal may be digital in nature, that is have one of two stable states corresponding to two levels of current at each individual cell's output. The total current may thus be adjusted by setting a digital value at the control inputs of the individual cells 302.

It should be noted that the output currents provided by the individual cells 302 may be unbalanced. For instance, some of the cells may provide larger currents (for coarse granularity control of the output current) while others may provide smaller currents (for fine granularity control of the output current I_(out).) Use of such digitally controllable current sources allows the offset of the amplifier circuit in FIG. 1 to be trimmed digitally, by selecting the desired offset according to a multi bit digital value.

FIG. 4 shows a circuit schematic of an embodiment of a digitally controllable current source cell 302. When the input signal at CTL is at a relatively high voltage, such that the p-channel transistor 402 is cut off, the output drive p-channel transistor 404 is biased according to an input bias signal at BIAS via p-channel transistor 408. In the other state, i.e., when the input signal at CTL drops to a relatively low voltage such that p-channel transistor 402 has its channel inverted, the gate of the p-channel transistor 404 is pulled to a relatively high voltage that is sufficient to, in this embodiment, place the transistor 404 in cutoff. Thus, two different levels of cell current I_(cell), e.g. “on” and “off”, are obtained in response to the input control signal at CTL. As mentioned in the previous paragraph, the various cells may be designed to provide different levels of “on” currents so that some may be used for fine granularity control of the total current I_(out) (see FIG. 3) while others may be used for relatively coarse granularity control of this output current. Referring back to FIG. 4, the varying levels of “on” currents may be achieved by sizing the transistors 408 and 404 as known to those of ordinary skill in the art.

Turning now to FIG. 5, this figure depicts a circuit schematic of an embodiment of the CMFB 130 used to improve common mode rejection, in an embodiment of the amplifier circuit. This embodiment of the amplifier circuit is similar to the p-channel embodiment shown in FIG. 1 that includes p-channel transistors 102, 104 for the first differential pair and 106, 108 for the second differential pair. Variable current generators 114 and 116 are coupled to source tail currents into a common source node for each pair as shown.

The voltages at two common source nodes are provided to separate n-channel transistors 504 and 508. If the two common source node voltages are equal, then the transistors 504 and 508, which in this embodiment are assumed to be matched, will present the same impedance to a bias circuit that includes the n-channel transistor 512 coupled in series with a diode connected p-channel transistor 516. A predetermined bias voltage appears at the node 520 which controls both bias levels of the two variable current generators 114, 116. The CMFB 130 operates as follows. Any differential variation in the common source nodes of the differential pairs should not cause a significant change in the total impedance between the node 520 and power supply return (ground), because of the way transistors 504 and 508 are connected to the same output node 520. However, if there is a common mode voltage change such that the voltages at both common source nodes of the differential pairs either increase or decrease simultaneously, then the impedance presented to node 520 will change, thereby causing the voltage at that node 520 to also change in a predetermined manner. In the embodiment shown in FIG. 5, if the voltages at the common source nodes of the differential pairs were to increase simultaneously, then the voltage at node 520 decreases in response, which in turn decreases the bias level and therefore the output current of each variable current generator 114, 116. On the other hand, if the common source node voltages of the differential pairs were to decrease simultaneously, then the voltage at the node 520 would increase in response, thereby increasing the tail currents I₁ and I₂. Such a feedback mechanism helps improve the common mode rejection of the amplifier circuit when it is used as a difference amplifier.

Turning now to FIG. 6, this figure illustrates a circuit schematic of an embodiment of a digitally controllable variable offset comparator circuit. The comparator circuit includes an amplifier circuit substantially as shown in the schematic of FIG. 1, including the first and second differential pairs which are defined by transistors 102, 104 and 106, 108, respectively. The variable current generators 114 and 116 are also coupled to control the tail currents I₁ and I₂ to the respective differential pairs. These current generators 114, 116 are controlled by a digital value that is received on multiple, offset select lines as shown. In this embodiment, each digital value of the offset corresponds to two oppositely varying tail currents I₁ and I₂ that are equidistant from a nominal tail current. This configuration is similar to the example given above in connection with FIG. 1 which helped explain the availability of opposite polarity offset using the amplifier circuit.

A single ended output voltage for this comparator may be available as either V_(out) or V_(out)#. To drive these output signals into one of two possible stable states, a regenerative load circuit 610 is provided as shown. After being reset by an input signal, this regenerative load circuit 610 will quickly amplify any difference between V_(out) and V_(out)#, where such amplification occurs at a relatively high gain due to the cross coupled n-channel pair 620 and p-channel pair 624, thereby ensuring that the output signals V_(out) and V_(out)# only assume one of two possible stable states. Thus, if V_(in) ⁺ is greater than V_(in) ⁻ by at least the amount of offset that has been selected (as referred back to the input of the differential pairs), then the regenerative latch circuit 610 forcefully drives V_(out) to a low voltage level and simultaneously drives V_(out)# to a high voltage level. Other types of regenerative latch circuits may be used to provide the digital type output signal typically associated with a sense amplifier or a comparator application.

The variable offset comparator shown in FIG. 6 may behave as a sense amplifier which detects small differences between two analog signals V_(in) ⁺ and V_(in) ⁻. In this embodiment, a pair of differential signals are sensed, where the first differential signal is applied to the first differential pair 102, 104, while an inverted version of the differential signal is applied to the second differential pair 108, 106. This signal definition assumes that V_(in) ⁺ is fed to the gate of the larger transistor 102 as well as the gate of the smaller transistor 106. Similarly, V_(in) ⁻ is fed to the gate of the smaller transistor 104 and to the gate of the larger transistor 108.

Turning now to FIG. 6B, a flow diagram for an offset trimming process is depicted. In operation 660, the comparator inputs are shorted to each other and, if necessary, to some reasonable voltage. The offset adjustment is then sweeped from the maximum negative to positive offset values (operation 664). Assuming the gain of the comparator is very large, the output of the comparator will change from low to high when the offset adjustment value is at the lowest offset setting (operation 668). At this setting, the offset of the comparator may be less than 1 least significant bit (LSB) of offset resolution. Note that changing the offset of the comparator may be viewed as changing the reference level to which a differential input signal V_(in) ⁺−V_(in) ⁻, as connected in the embodiment of FIG. 6, will be compared by the comparator. Thus, the reference level of the comparator may be set by the offset adjustment.

The various embodiments of the amplifier circuit described above may be designed using conventional computer aided design/electronic design automation tools. FIG. 7 depicts a flow diagram of an embodiment of a computer-implemented method for designing the amplifier circuit. The method involves the creation of a representation of the differential transistor pairs where each pair is intentionally unbalanced (Operation 704). This representation may, for instance, include representing the first output node as being coupled to be driven by a larger transistor of the pair, and a second output node as being coupled to be driven by a smaller transistor of the pair. The size of the transistors that constitute the pair may be selected according to the width of the channel of each transistor, while keeping the length of the channels the same. Other techniques for sizing the transistors may alternatively be used. As was described above, the representation of the differential transistor pairs should show each pair as having first and second output nodes, where the first output node of the first pair is coupled to the second output node of the second pair, and the second output node of the first pair is coupled to the first output node of the second pair. This is also referred to here as an inter-coupled configuration of the dual differential transistor pair circuit.

The method also includes creating a representation of first and second variable current generators that are coupled to control respective tail currents of the first and second differential pairs (Operation 708). This representation of the variable current generators may include representing each generator as being digitally controllable as, for instance, shown in FIG. 3 (operation 712).

As mentioned above, there are various different scenarios for applying input signals to the amplifier circuit. For instance, a differential input signal may be applied to the larger and smaller transistors of the first pair, while an inverted version of the input signal may be applied to the larger and smaller transistors of the second pair. In a comparator embodiment, a magnitude of this differential input signal may be compared to a reference value that has been defined by a digital offset selection value. In a sense amplifier embodiment, this reference value may be set to a very small value. A representation of these input signals may be created using a computer-implemented method according to various well known techniques.

In addition, an output of the amplifier circuit may be defined in different ways as well. For instance, a differential output voltage may be defined as the difference between V_(out) ^(b) and V_(out) ^(a) (see FIG. 1). Other types of outputs, such as the single ended output as defined for the sense amplifier/comparator application of FIG. 6, may also be represented in the computer-implemented method. In general, the representations of all the embodiments described above may be created using computer aided design/electronic design automation tools that are well know to those of ordinary skill in the art.

To summarize, various embodiments of an amplifier circuit and process for designing such a circuit have been described. In the foregoing specification, the invention has been described with reference to specific exemplary embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the appended claims. For instance, the particular circuit schematic shown in FIG. 4 for the digitally controllable current cell is just an example of a wide range of different designs that may be used to provide digital control of cell current. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. 

What is claimed is:
 1. An amplifier circuit comprising: first and second differential transistor pairs each being intentionally unbalanced, each pair having first and second output nodes, the first output node of the first pair being coupled to the second output node of the second pair, the second output node of the first pair being coupled to the first output node of the second pair; and first and second variable current generators coupled to control respective tail currents of the first and second differential pairs.
 2. The amplifier circuit of claim 1 wherein for each differential transistor pair, the first output node is coupled to be driven by a larger transistor of the pair and the second output node is coupled to be driven by a smaller transistor of the pair.
 3. The amplifier circuit of claim 2 wherein the first differential transistor pair is to receive an input signal at the larger and smaller transistors of that pair, and the second differential transistor pair is to receive an inverted version of the input signal at the larger and smaller transistors of that pair.
 4. The amplifier circuit of claim 1 wherein the first differential transistor pair is to receive an input signal and the second differential transistor pair is to receive an inverted version of the input signal.
 5. The amplifier circuit of claim 4 wherein the first and second variable current generators are digitally controllable.
 6. The amplifier circuit of claim 1 further comprising: a common mode feedback circuit coupled to adjust the first and second variable current generators so as to improve the common mode rejection of the amplifier circuit in response to voltages of the first and second differential pairs.
 7. A computer-implemented method for designing an amplifier circuit, comprising: creating a representation of first and second differential transistor pairs each being intentionally unbalanced, each pair having first and second output nodes, the first output node of the first pair being coupled to the second output node of the second pair, the second output node of the first pair being coupled to the first output node of the second pair; and creating a representation of first and second variable current generators that are coupled to control respective tail currents of the first and second differential pairs.
 8. The method of claim 7 wherein the representing of each differential transistor pair includes representing the first output node as being coupled to be driven by a larger transistor of the pair and the second output node as being coupled to be driven by a smaller transistor of the pair.
 9. The method of claim 8 further comprising: creating a representation of an input signal being applied to the larger and smaller transistors of the first differential transistor pair; and creating a representation of an inverted version of the input signal being applied to the larger and smaller transistors of the second differential transistor pair.
 10. The method of claim 7 further comprising: creating a representation of an input signal being applied to the first differential transistor pair; and creating a representation of an inverted version of the input signal being applied to the second differential transistor pair.
 11. The method of claim 10 wherein the representation of the first and second variable current generators includes representing each generator as being digitally controllable.
 12. The method of claim 7 further comprising: creating a representation of a common mode feedback circuit as being coupled to adjust the first and second variable current generators so as to improve the common mode rejection of the amplifier circuit in response to voltages of the first and second differential pairs.
 13. An amplifier circuit comprising: first and second differential transistor pairs, each pair having first and second output nodes, wherein for each differential transistor pair the first output node is coupled to be driven by a larger transistor of the pair and the second output node is coupled to be driven by a smaller transistor of the pair, the first output node of the first pair being coupled to the second output node of the second pair, the second output node of the first pair being coupled to the first output node of the second pair; and first and second variable current generators coupled to control respective tail currents of the first and second differential pairs.
 14. The amplifier circuit of claim 13 wherein the first differential transistor pair is to receive an input signal and the second differential transistor pair is to receive an inverted version of the input signal.
 15. The amplifier circuit of claim 13 wherein the first and second variable current generators are digitally controllable.
 16. The amplifier circuit of claim 13 further comprising: a common mode feedback circuit coupled to adjust the first and second variable current generators so as to improve the common mode rejection of the amplifier circuit in response to voltages of the first and second differential pairs. 